﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace HyperPin_Database_Editor
{
    public partial class HPPressStartTextSettings : HPSettingsPanel
    {
        static string iniEnabled = "Enabled";
        static string iniText1 = "Text1";
        static string iniText2 = "Text2";
        static string iniColor = "Color";

        public HPPressStartTextSettings()
        {
            InitializeComponent();
        }

        protected void updateOptionalControls()
        {
        }

        public override void doLoadSettings()
        {
            checkEnabled.Checked = readSettingBool(iniEnabled, false);
            textText1.Text = readSetting(iniText1, "Free Play");
            textText2.Text = readSetting(iniText2, "Press Start");
            pictureColor.BackColor = readSettingColor(iniColor, Color.Red);

            updateOptionalControls();
        }

        public override void doSaveSettings()
        {
        }

        private void checkEnabled_CheckedChanged(object sender, EventArgs e)
        {
            updateOptionalControls();
        }

        private void pictureColor_Click(object sender, EventArgs e)
        {
            DialogResult result = colorDialog.ShowDialog();
            if (result == DialogResult.OK)
            {
                pictureColor.BackColor = colorDialog.Color;
            }

        }
    }
}
